package com.example.demo;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import com.example.demo.service.UserServiceImpl;

@SpringBootApplication
public class DemoApplication   implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

    public void run(String... args) throws Exception {
        System.out.println("启动ServerBootstrap 开始");
        UserServiceImpl.startServer("127.0.0.1",8990);
    }
}
